<style>
    #tenant-detail {
        hr {
            margin-left: 25px;
        }

        #base_field_one {
            .layui-form-label {
                width: 140px;

            }
        }

        #base_field_two {
            .layui-form-label {
                width: 140px;

            }
        }

        #base_field_three {
            .layui-form-label {
                width: 155px;

            }
        }

    }
</style>
<div class="layui-fluid" id="tenant-detail">
    <form class="layui-form" action="" lay-filter="tenant-edit-form" disabled="true">
        <div class="layui-tab layui-tab-card">
            <ul class="layui-tab-title">
                <li class="layui-this">基本信息</li>
                <li>人员信息</li>
                <li>经营状况</li>
            </ul>
            <div class="layui-tab-content" style="padding: 15px;">
                <div class="layui-tab-item layui-show" id="base_field_one">
                    <fieldset class="layui-elem-field">
                        <legend id="base_field">基本信息</legend>
                        <div class="layui-field-box">
                            <div class="layui-row">
                                <div class="layui-form-item febs-hide">
                                    <label class="layui-form-label febs-form-item-require">公司ID：</label>
                                    <div class="layui-input-block">
                                        <input type="text" name="tenantId" class="layui-input">
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-col-md6">
                                        <label class="layui-form-label layui-form-label-detail">公司名称：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.tenantName}"></div>
                                    </div>
                                    <div class="layui-col-md6">
                                        <label class="layui-form-label layui-form-label-detail">公司简称：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.shortName}"></div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-col-md6">
                                        <label class="layui-form-label layui-form-label-detail">公司分类：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.tenantTypeName}"></div>
                                    </div>
                                    <div class="layui-col-md6">
                                        <label class="layui-form-label layui-form-label-detail">公司编码：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.tenantCode}"></div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-col-md6">
                                        <label class="layui-form-label layui-form-label-detail">公司规模：</label>
                                        <div class="layui-input-block layui-input-block-html" name="scale"></div>
                                    </div>
<!--                                    <div class="layui-col-md6">-->
<!--                                        <label class="layui-form-label layui-form-label-detail">隶属关系：</label>-->
<!--                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.affiliation}"></div>-->
<!--                                    </div>-->
                                    <div class="layui-col-md6">
                                        <label class="layui-form-label layui-form-label-detail">上级单位：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.parentTenantName}"></div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-col-md6">
                                        <label class="layui-form-label layui-form-label-detail">单位属性：</label>
                                        <div class="layui-input-block layui-input-block-html" name="attribute"></div>
                                    </div>
                                    <div class="layui-col-md6">
                                        <label class="layui-form-label layui-form-label-detail">行政区域：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.administrativeRegion}"></div>
                                    </div>
                                </div>

                                <div class="layui-form-item">
                                    <div class="layui-col-md12">
                                        <label class="layui-form-label layui-form-label-detail">统一社会信用代码：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.tenantCreditCode}"></div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-col-md6">
                                        <label class="layui-form-label layui-form-label-detail">国家/地区：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.country}"></div>
                                    </div>
                                    <div class="layui-col-md6">
                                        <label class="layui-form-label layui-form-label-detail">所在城市：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.city}"></div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-col-md12">
                                        <label class="layui-form-label layui-form-label-detail">所在街道：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.street}"></div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-col-md12">
                                        <label class="layui-form-label layui-form-label-detail">公司简介：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.tenantBrief}"></div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-col-md12">
                                        <label class="layui-form-label layui-form-label-detail">经营地址：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.businessAddress}"></div>
                                    </div>
                                </div>
                                <div class="layui-form-item">
                                    <div class="layui-col-md12">
                                        <label class="layui-form-label layui-form-label-detail">注册地址：</label>
                                        <div class="layui-input-block layui-input-block-html" th:text="${tenant.registeredAddress}"></div>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset class="layui-elem-field" id="appInfo" th:if="${tenant.systemInterfacingFlg == '1'}">
                        <legend >系统对接</legend>
                        <div class="layui-field-box">
                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">AppId：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.appId}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">AppSecret：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.appSecret}"></div>
                                </div>
                            </div>
                        </div>
                    </fieldset>
                    <fieldset class="layui-elem-field">
                        <legend >支付相关</legend>
                        <div class="layui-field-box">

                        </div>
                    </fieldset>
                </div>
                <div class="layui-tab-item" id="base_field_two">
                    <fieldset class="layui-elem-field">
                        <legend>人员信息</legend>
                        <div class="layui-field-box">

                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">法人证件类型：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.legalCredentialType=='1'?'身份证':'其他'}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">法人证件编号：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.legalCredentialNo}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">法人姓名：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.legalName}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">法人电话：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.legalMobile}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">主要负责人：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.principal}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">主要负责人手机号：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.principalTelephone}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">主要负责人电话：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.principalMobile}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">主要负责人邮箱：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.principalEmail}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">安全负责人：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.safetyUserName}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">安全负责人手机号：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.safetyUserTelephone}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">安全负责人电话：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.safetyUserMobile}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">安全负责人邮箱：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.safetyUserEmail}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">应急管理员人数：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.emergencyManageCount}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">注册安全工程师人数：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.certifiedSafetyCount}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">员工状况：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.employeeSituation}"></div>
                                </div>
                            </div>

                        </div>
                    </fieldset>
                </div>


                <div class="layui-tab-item" id="base_field_three">
                    <fieldset class="layui-elem-field">
                        <legend>经营状况</legend>
                        <div class="layui-field-box">

                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">经营状况：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.manageCondition}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">经营范围：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.manageScope}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">海控控股情况：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.holdingSituation}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">行业领域：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.industryField}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">经济类型：</label>
                                    <div class="layui-input-block layui-input-block-html" name="economyType"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">经济行业大类：</label>
                                    <div class="layui-input-block layui-input-block-html" name="economyMajorType"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">经济行业小类：</label>
                                    <div class="layui-input-block layui-input-block-html" name="economyMinorType"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">重大危险源：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.majorFlg}"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">工贸企业分类：</label>
                                    <div class="layui-input-block layui-input-block-html" name="industryTradeType"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">最高固有风险等级：</label>
                                    <div class="layui-input-block layui-input-block-html" name="inherentLevel"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">重点风险：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.majorRisk}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">达标情况（应急）：</label>
                                    <div class="layui-input-block layui-input-block-html" name="reachCondition"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">达标有效期（应急）：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.reachDateString}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">达标情况（交通）：</label>
                                    <div class="layui-input-block layui-input-block-html" name="trafficReachCondition"></div>
                                </div>
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">达标有效期（交通）：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.trafficReachDateString}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">涉及危化品：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.chemicalFlg=='1'?'是':'否'}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">危化品内容：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.majorHazard}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">安全主体责任制：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.responsibilityFlg=='1'?'是':'否'}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">安全重点防控风险：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.riskControl}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md6">
                                    <label class="layui-form-label layui-form-label-detail">是否有安全机构：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.safetyGearFlag=='1'?'是':'否'}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">安全生产管理重点：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.safetyProduction}"></div>
                                </div>
                            </div>
                            <div class="layui-form-item">
                                <div class="layui-col-md12">
                                    <label class="layui-form-label layui-form-label-detail">涉及危险源内容和规模：</label>
                                    <div class="layui-input-block layui-input-block-html" th:text="${tenant.majorContent}"></div>
                                </div>
                            </div>

                        </div>
                    </fieldset>
                </div>
            </div>
        </div>
    </form>
</div>

<script data-th-inline="javascript">
    let tenant = [[${tenant}]];
</script>
<script th:src="@{/febs/js/system/tenant/tenantDetail.js(v=1)}"></script>
